package org.springframework.beans.factory.parsing;

import org.springframework.core.io.Resource;

public interface SourceExtractor {

    /**
     * Extract the source metadata from the candidate object supplied
     * by the configuration parser.
     * @param sourceCandidate
     * @param definingResource
     * @return
     */
    Object extractSource(Object sourceCandidate, Resource definingResource);
}
